package pers.lance.firstweb.bean;

import java.util.Date;

/**
 *
 */
public class User {
    int id;
    String name;
    String password;
    Date birth;
    String major;

    public User(int id, String name, String password, Date birth, String major) {
        this.id = id;
        this.name = name;
        this.password = password;
        this.birth = birth;
        this.major = major;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Date getBirth() {
        return birth;
    }

    public void setBirth(Date birth) {
        this.birth = birth;
    }

    public String getMajor() {
        return major;
    }

    public void setMajor(String major) {
        this.major = major;
    }
}
